package com.ozo.cloud.system.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serial;
import java.io.Serializable;

/**
 * 操作日志视图对象
 *
 * @author qiangesoft
 * @version 1.0
 * @date 2024-11-20 10:47:15
 */
@Data
@Schema(description = "操作日志视图对象")
public class SysOperationLogVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "模块")
    private String module;

    @Schema(description = "操作类型")
    private String operationType;

    @Schema(description = "操作名称")
    private String operationName;

    @Schema(description = "方法")
    private String method;

    @Schema(description = "请求url")
    private String requestUrl;

    @Schema(description = "请求方式")
    private String requestMethod;

    @Schema(description = "请求ip")
    private String requestIp;

    @Schema(description = "请求地点")
    private String requestLocation;

    @Schema(description = "请求耗时")
    private Long costTime;

    @Schema(description = "成功标志")
    private Byte successFlag;

    @Schema(description = "操作人")
    private String operationUser;

    @Schema(description = "操作时间")
    private LocalDateTime operationTime;

    @Schema(description = "请求参数")
    private String requestParam;

    @Schema(description = "请求体")
    private String requestBody;

    @Schema(description = "响应数据")
    private String responseData;

    @Schema(description = "异常信息")
    private String errorMsg;

}
